package com.chixing.day02;

import java.util.Scanner;

public class StringDemo {
    public static void main(String[] args) {
        String result = "https://search.51job.com";
                //workyear=02&cotype=99&degreefrom=03&jobterm=99&companysize=99&ord_field=0&dibiaoid=0&line=&welfare=
        String[] workYearArr = {"所有","在校生/应届生","1-3年","3-5年","5-10年","10年以上","无需经验"};
        String[] salaryArray = {"所有","2k以下","2-4k","4-5k","5-7k","7-9k","9-10k","10k以上"};
        String[] degreeArray = {"所有","初中及以下","高中/中专/大专","本科","硕士","博士","无学历要求"};
        String[] companyTypeArray = {"所有","国企","外资","上市公司","合资","民营企业","央企"};


        Scanner sc = new Scanner(System.in);
        System.out.println("请输入工作经验：");
        int a = sc.nextInt();
        switch(a){
            case 0:result+="?";break;
            case 1:result+="$workYear=";result+=workYearArr[1];break;
            case 2:result+="$workYear=";result+=workYearArr[2];break;
            case 3:result+="$workYear=";result+=workYearArr[3];break;
            case 4:result+="$workYear=";result+=workYearArr[4];break;
            case 5:result+="$workYear=";result+=workYearArr[5];break;
            case 6:result+="$workYear=";result+=workYearArr[6];break;
            default:
                System.out.println("您的输入有误");
        }
        System.out.println("请输入期望薪资：");
        int b = sc.nextInt();
        switch(b){
            case 0:result+="$salary=";result+="";break;
            case 1:result+="$salary=";result+=salaryArray[1];break;
            case 2:result+="$salary=";result+=salaryArray[2];break;
            case 3:result+="$salary=";result+=salaryArray[3];break;
            case 4:result+="$salary=";result+=salaryArray[4];break;
            case 5:result+="$salary=";result+=salaryArray[5];break;
            case 6:result+="$salary=";result+=salaryArray[6];break;
            case 7:result+="$salary=";result+=salaryArray[7];break;
            default:
                System.out.println("您的输入有误");
        }
        System.out.println("请输入学历：");
        int c = sc.nextInt();
        switch(c){
            case 0:result+="$degree=";result+="";break;
            case 1:result+="$degree=";result+=degreeArray[1];break;
            case 2:result+="$degree=";result+=degreeArray[2];break;
            case 3:result+="$degree=";result+=degreeArray[3];break;
            case 4:result+="$degree=";result+=degreeArray[4];break;
            case 5:result+="$degree=";result+=degreeArray[5];break;
            case 6:result+="$degree=";result+=degreeArray[6];break;
            default:
                System.out.println("您的输入有误");
        }
        System.out.println("请输入企业类型：");
        int d = sc.nextInt();
        switch(d){
            case 0:result+="";break;
            case 1: case2:case3:case4:case5:case6:result+="$companyType=";result+=companyTypeArray[d];break;
            default:
                System.out.println("您的输入有误");
        }
        System.out.println(result);
    }
}
